<?php
class Calendar extends Model {
	protected $validate = array(
		array('yearmonth', 'require', '年月份不能为空'),
		array('day', 'require', '日期不能为空'),
		array('postid', 'require', '文章ID不能为空'),
	);
	
	public function setTable() {
		$this->table = $this->db->getTable('calendar');
	}
	
	public static function getTable() {
		return $this->db->getTable('calendar');
	}
}
?>